FragmentPagerAdapter
Constructor for FragmentPagerAdapter. If BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT is passed in, then only the current Fragment is in the RESUMED state. All other fragments are capped at STARTED. If BEHAVIOR_SET_USER_VISIBLE_HINT is passed, all fragments are in the RESUMED state and there will be callbacks to setUserVisibleHint.
Parameters
fragment manager that will interact with this adapter
determines if only current fragments are in a resumed state
Deprecated
use FragmentPagerAdapter with BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT
Constructor for FragmentPagerAdapter that sets the fragment manager for the adapter. This is the equivalent of calling FragmentPagerAdapter and passing in BEHAVIOR_SET_USER_VISIBLE_HINT.
Fragments will have setUserVisibleHint called whenever the current Fragment changes.
Parameters
fragment manager that will interact with this adapter